<template>
	<div>
		<el-form label-width="80px" :model="login">
			<el-form-item label="视频id:">
				<el-input v-model="login.v_id"></el-input>
			</el-form-item>
		</el-form>
		<el-button type="primary" @click="addVideo()">确 定</el-button>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				login: {
					"v_id": "",
				},
			}
		},
		methods: {
			addVideo() {
				let url = 'addcarousel/'+window.sessionStorage.getItem("token")+"/"+this.login.v_id;
				this.$http.get(url).then(res => {
					if(res.data.status == 2000){
						this.$message.success("添加成功");
					}
					else {
						this.$message.error("添加失败");
					}
					
				})
			},
		}
	}
</script>

<style>
</style>
